package com.chen.authority.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.authority.common.model.PageQo;
import com.chen.authority.common.response.Response;
import com.chen.authority.model.dto.UserDto;
import com.chen.authority.model.qo.UserQo;
import com.chen.authority.model.po.UserPo;
import com.chen.authority.model.vo.UserVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 用户Service接口
 *
 * @author chengy
 * @date 2022-08-20
 */
public interface UserService extends IService<UserPo> {

    Response addOrUpdateUser(Integer id, UserDto dto);

    Response deleteUserByIds(Integer[] userIds);

    UserVo getUserInfoById(Integer id);

    Page<UserVo> pageQueryUserList(PageQo pageQo, UserQo userQo);

    Response importUserList(MultipartFile file);

    List<UserVo> exportUserList(UserQo qo);

}
